﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace Collab.Services.Remote.Entities
{
    [DataContract(Namespace = "http://collab.codeplex.com/2010/10/Schemas")]
    public class ProjectItem
    {
        [DataMember(Order = 1, IsRequired = true)]
        public string Name { get; set; }
        [DataMember(Order = 1, IsRequired = true)]
        public List<ProjectItem> Children { get; set; }
        [DataMember(Order = 1, IsRequired = true)]
        public string Kind { get; set; }
        [DataMember(Order = 1, IsRequired = true)]
        public string RelativePath { get; set; }
        [DataMember(Order = 1, IsRequired = false)]
        public string[] Parents { get; set; }

        public string FullPath { get; set; }

        public ProjectItem()
        {

            Children = new List<ProjectItem>();
        }

    }
}
